<!doctype html>
<html>
<head>
<meta charset="utf-8">
<title>ES6-正则表达式</title>
</head>
<body>
	<script>
		let reg=new RegExp("xyz","i");
		console.log(reg);
		let reg1=new RegExp(/xyz/i);
		console.log(reg1);
		let reg2=new RegExp(/xyz/ig,'g');
		console.log(reg2);
	</script>
</body>
</html>
